package myapp.drawable_items;

import android.util.FloatMath;
import android.view.animation.Animation;
import android.view.animation.Transformation;

public class BlinkAnimation extends Animation {	
	
	public BlinkAnimation() {
	}

	@Override
	protected void applyTransformation(float interpolatedTime, Transformation t) {
		float period = interpolatedTime * 3.14f;
		t.setAlpha(Math.abs(FloatMath.cos(period)));
	}

	@Override
	public boolean willChangeBounds() {
		return false;
	}

	@Override
	public boolean willChangeTransformationMatrix() {
		return false;
	}
}
